package org.webdb.core;

public class DocumentNotExistException extends RuntimeException {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    protected static String documentName(String schemaName, String documentName) {
        if (schemaName == null)
            return documentName;
        return schemaName + ":" + documentName;
    }

    public DocumentNotExistException(String schemaName, String documentName) {
        super(documentName(schemaName, documentName));
    }

}
